<?php $this->left_menu="manage_user"?>
<?php
// Load Header

//Load images
/**
 * Để sử dụng ảnh 'my_image.png' trong trang already_login, copy 'my_image.png' đặt trong thư mục 'img' theo đường dẫn sau: /plugins/users/vendors/img/my_image.png
 * Để triệu gọi dùng cú pháp sau: echo $html->image('/your_plugin/img/my_image.png');
 * */

// Load Stylesheet
/**
 * Để chỉnh sửa giao diện trang already_login, tìm đến file already_login.css theo đường dẫn sau: /plugins/users/vendors/css/already_login.css
 * */
echo $this->Html->css('/users/css/jquery.ui');
//echo $this->Html->css('/users/css/already_login');
echo $this->Html->css('cake.form');

// Load Javascript
/**
 * Để sử dụng JavaScript trong trang already_login, tạo file already_login.js đặt trong đường dẫn sau: /plugins/users/vendors/js/already_login.js
 * Để triệu gọi dùng cú pháp sau: echo $this->Html->script('/users/js/already_login.js');
 * */
echo $this->Html->script('/users/js/jquery-1.3.2.min.js');
echo $this->Html->script('/users/js/ui.core.js');
echo $this->Html->script('/users/js/ui.draggable.js');
echo $this->Html->script('/users/js/ui.resizable.js');
echo $this->Html->script('/users/js/ui.dialog.js');
echo $this->Html->script('/users/js/jquery.form.js');
echo $this->Html->script('/users/js/already_login.js');

?>
<div class="title_left_sidebar">
	<div class="text_title">
		<?php __('Already Login!') ?>
	</div>
</div>
<?php $session->flash() ?>
<div class="cake_form">
	<?php echo $html->link('logout', array('plugin' => 'users', 'controller' => 'users', 'action' => 'logout')); ?>
	<?php echo $html->link('change password', '#' , array('class' => 'change_pass_cls')) ?>
	<?php //echo $html->link('change password', '#' , array('plugin' => 'users', 'controller' => 'users', 'id' => 'display_id')) ?>
	<?php //echo $html->link(__($recruit['Recruit']['email'], true), '#', array('action' => 'replyByAdmin', $recruit['Recruit']['email'], 'id' => 'preferences', 'class' => 'cls_email'));?>
</div>

<div id="change_pass_form" title="Change password">
	<?php 
		echo $form->create('User', array('url' => array(
			'plugin'		=> 'users',
			'controller'	=> 'users',
			'action'		=> 'change_pass',
		),
		'id'			=> 'changeUserPassword'
		));
		echo $form->input('old_password', array('label' => __('Old password:', true), 'type' => 'password'));
		echo $form->input('new_password', array('label' => __('New password:', true), 'type' => 'password'));
		echo $form->input('re_new_password', array('label' => __('Retype new password:', true), 'type' => 'password'));
		echo $form->submit(__('Submit', true), array('class' => 'submit_btn'));
		echo $form->end();
	?>
</div>